package com.why.entity;

import java.util.ArrayList;
import java.util.List;

public class Org {

	String id;
	String up_id;
	String org_name;
	String org_type;
	String org_code;
	String org_level;
	List<Org> children;
	List<IndexData> datas;
	
	String index_id;
	String year;
	String data_value;
	String data_source;
	
	
	public String getIndex_id() {
		return index_id;
	}

	public void setIndex_id(String index_id) {
		this.index_id = index_id;
	}

	public String getYear() {
		return year;
	}

	public void setYear(String year) {
		this.year = year;
	}

	public String getData_value() {
		return data_value;
	}

	public void setData_value(String data_value) {
		this.data_value = data_value;
	}

	public String getData_source() {
		return data_source;
	}

	public void setData_source(String data_source) {
		this.data_source = data_source;
	}

	public List<IndexData> getDatas() {
		return datas;
	}

	public void setDatas(List<IndexData> datas) {
		this.datas = datas;
	}

	public boolean hasChildren(){
		if(children == null)
			return false;
		return children.size()>0;
	}
	
	public List<Org> getChildren() {
		return children;
	}
	public void setChildren(Org c) {
		if(children == null)
			children = new ArrayList<Org>();
		children.add(c);
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getUp_id() {
		return up_id;
	}
	public void setUp_id(String up_id) {
		this.up_id = up_id;
	}
	public String getOrg_name() {
		return org_name;
	}
	public void setOrg_name(String org_name) {
		this.org_name = org_name;
	}
	public String getOrg_type() {
		return org_type;
	}
	public void setOrg_type(String org_type) {
		this.org_type = org_type;
	}
	public String getOrg_code() {
		return org_code;
	}
	public void setOrg_code(String org_code) {
		this.org_code = org_code;
	}
	public String getOrg_level() {
		return org_level;
	}
	public void setOrg_level(String org_level) {
		this.org_level = org_level;
	}
	
	
	
}
